/**
 * 
 */
package br.srv.full.virtual.entities.faces;

/**
 * Esta classe representa 
 * @author Carlos Delfino
 *
 */
public class ConfigNavigationCaseVirtual {
	 

		public ConfigNavigationCaseVirtual() {
			fromViewId = null;
			fromAction = null;
			fromOutcome = null;
			toViewId = null;
			key = null;
			redirect = null;
		}

		public String getFromViewId() {
			return fromViewId;
		}

		public void setFromViewId(String fromViewId) {
			this.fromViewId = fromViewId;
		}

		public String getFromAction() {
			return fromAction;
		}

		public void setFromAction(String fromAction) {
			this.fromAction = fromAction;
		}

		public String getFromOutcome() {
			return fromOutcome;
		}

		public void setFromOutcome(String fromOutcome) {
			this.fromOutcome = fromOutcome;
		}

		public String getToViewId() {
			return toViewId;
		}

		public void setToViewId(String toViewId) {
			this.toViewId = toViewId;
		}

		public boolean hasRedirect() {
			return null != redirect;
		}

		public void setRedirect(String redirect) {
			this.redirect = redirect;
		}

		public String getKey() {
			return key;
		}

		public void setKey(String key) {
			this.key = key;
		}

		public String toString() {
			StringBuilder sb = new StringBuilder(64);
			sb.append("FROM VIEW ID:").append(getFromViewId());
			sb.append("\nFROM ACTION:").append(getFromAction());
			sb.append("\nFROM OUTCOME:").append(getFromOutcome());
			sb.append("\nTO VIEW ID:").append(getToViewId());
			sb.append("\nREDIRECT:").append(hasRedirect());
			return sb.toString();
		}

		private String fromViewId;
		private String fromAction;
		private String fromOutcome;
		private String toViewId;
		private String key;
		protected String redirect;
	
}
